package com.bike.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 停车点信息表
    */
@ApiModel(value="停车点信息表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bike_park")
public class Park implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="")
    private Integer id;

    /**
     * 停车点名称
     */
    @TableField(value = "park_name")
    @ApiModelProperty(value="停车点名称")
    private String parkName;

    /**
     * 中心点经度
     */
    @TableField(value = "center_lng")
    @ApiModelProperty(value="中心点经度")
    private BigDecimal centerLng;

    /**
     * 中心点纬度
     */
    @TableField(value = "center_lat")
    @ApiModelProperty(value="中心点纬度")
    private BigDecimal centerLat;

    /**
     * 已中心点距离的停放单车范围（米）
     */
    @TableField(value = "park_range")
    @ApiModelProperty(value="已中心点距离的停放单车范围（米）")
    private Integer parkRange;

    /**
     * 停放单车数量
     */
    @TableField(value = "park_count")
    @ApiModelProperty(value="停放单车数量")
    private Integer parkCount;

    /**
     * 0：禁用，1：正常
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value="0：禁用，1：正常")
    private String status;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    @ApiModelProperty(value="备注")
    private String remarks;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date createTime;

    /**
     * 最后一次更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value="最后一次更新时间")
    private Date updateTime;

    /**
     * 删除标记
     */
    @TableField(value = "del_flag")
    @ApiModelProperty(value="删除标记")
    private Boolean delFlag;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_PARK_NAME = "park_name";

    public static final String COL_CENTER_LNG = "center_lng";

    public static final String COL_CENTER_LAT = "center_lat";

    public static final String COL_PARK_RANGE = "park_range";

    public static final String COL_PARK_COUNT = "park_count";

    public static final String COL_STATUS = "status";

    public static final String COL_REMARKS = "remarks";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_DEL_FLAG = "del_flag";
}